<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
		*{
			margin: 0px;
			padding: 0px;
		}
		.box{
			background-image: url(images/bg.jpg);
			background-size: 100% 100%;
		}
	
		/*球队数据*/
		.tdateModify{
			padding: 15px;
			background-color: #fff;
			box-sizing: border-box;
			position: absolute;
			opacity: 0.97;
			z-index: 9999;
			border: 3px solid #2464b5;
		}
		.tdateModify>p{
			display: inline-block;
			width: 100%;
			position: relative;
		}
		.tdateModify>p span{
			display: inline-block;
			float: right;
			color: #bbb;
			position: absolute;
			bottom: 0px;
			right: 0px;
			cursor: pointer;
		}
		.tdateModify>p span:hover{
			color: red;
		}
		.tdateModify table{
			margin: 15px auto;
		}
		.tdateModify table tr td:nth-of-type(1){
			text-align: right;
		}
		.tdateModify form p{
			text-align: right;
		}
		.tdateModify form p input{
			background-color:#ccc;
			color: #2464b5;
			font-weight: bold;
			box-sizing: border-box;
			margin-right:10px;
		}
		.tdateModify form p input:hover{
			background-color:#2464b5;
			color: #fff;
		}
	</style>
</head>
<body>
	<div class="box">
		
		<!-- 球队数据修改 -->
		<div class="tdateModify">
			<p>
				修改数据
				<span onclick="tobghome()">×</span>
			</p>
			<form action="tdateServlet.do?opt=3&tdateId=${param.tdateId }" method="post">
				<table>
					<tr>
						<td>球队:</td>
						<td><input type="text" name="teamName" value="${param.teamName}">
					</tr>
					<tr>
						<td>时间:</td>
						<td><input type="datetime-local" name="tdateTime" value="${param.tdateTime}">
					</tr>
					<tr>
						<td>命中:</td>
						<td><input type="number" name="allHit" value="${param.allHit}">
					</tr>
					<tr>
						<td>出手:</td>
						<td><input type="number" name="allMove" value="${param.allMove}">
					</tr>
					<tr>
						<td>三分命中:</td>
						<td><input type="number" name="threeHit" value="${param.threeHit}">
					</tr>
					<tr>
						<td>三分出手:</td>
						<td><input type="number" name="threeMove" value="${param.threeMove}">
					</tr>
					<tr>
						<td>罚球命中:</td>
						<td><input type="number" name="freeHit" value="${param.freeHit}">
					</tr>
					<tr>
						<td>罚球出手:</td>
						<td><input type="number" name="freeMove" value="${param.freeMove}">
					</tr>
					<tr>
						<td>进攻:</td>
						<td><input type="number" name="attack" value="${param.attack}">
					</tr>
					<tr>
						<td>防守:</td>
						<td><input type="number" name="defeanse" value="${param.defeanse}">
					</tr>
					<tr>
						<td>得分:</td>
						<td><input type="number" name="score" value="${param.score}">
					</tr>
					<tr>
						<td>篮板:</td>
						<td><input type="number" name="backboard" value="${param.backboard}">
					</tr>
					<tr>
						<td>助攻:</td>
						<td><input type="number" name="assists" value="${param.assists}">
					</tr>
					<tr>
						<td>抢断:</td>
						<td><input type="number" name="snatch" value="${param.snatch}">
					</tr>
					<tr>
						<td>盖帽:</td>
						<td><input type="number" name="nutcap" value="${param.nutcap}">
					</tr>
					<tr>
						<td>失误:</td>
						<td><input type="number" name="fault" value="${param.fault}">
					</tr>
					<tr>
						<td>犯规:</td>
						<td><input type="number" name="breakrules" value="${param.breakrules}">
					</tr>
					<tr>
						<td>赛季:</td>
						<td>
							<select name="seasonId">
								<c:if test="${param.seasonId eq 1}">
									<option value="0">-请选择-</option>
									<option value="1"  selected="selected">季前赛</option>
									<option value="2">季后赛</option>
									<option value="3">常规赛</option>
								</c:if>
								<c:if test="${param.seasonId eq 2}">
									<option value="0">-请选择-</option>
									<option value="1">季前赛</option>
									<option value="2" selected="selected">季后赛</option>
									<option value="3">常规赛</option>
								</c:if>
								<c:if test="${param.seasonId eq 3}">
									<option value="0">-请选择-</option>
									<option value="1">季前赛</option>
									<option value="2">季后赛</option>
									<option value="3" selected="selected">常规赛</option>
								</c:if>
							</select>
						</td>
					</tr>
				</table>
				<p class="submitP">
					<input type="button" name="" value="取消" onclick="tobghome()">
					<input type="submit" name="" value="确定">
				</p>
			</form>	
		</div>
		
	</div>
</body>
<script type="text/javascript" src="JS/jquery.js"></script>
<script type="text/javascript" src="JS/bghome.js"></script>
<script type="text/javascript">
	function tobghome(){
		window.location.href="/nba/SearchServlet.do"
	}
</script>
</html>